package com.lwk.service.impl;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;
import org.springframework.transaction.annotation.Transactional;

import com.lwk.dao.AdminDao;
import com.lwk.domain.Admin;
import com.lwk.service.AdminService;

public class AdminServiceImpl implements AdminService {
	private AdminDao adminDao;

	public void setAdminDao(AdminDao adminDao) {
		this.adminDao = adminDao;
	}

	@Transactional(readOnly=true)
	public List<Admin> login(DetachedCriteria dc) {
		List<Admin> list = adminDao.login(dc);
		return list;
	}
}
